package com.xcdh.commons.spring.aspect;

import com.xcdh.commons.annotation.DataSourceSwitch;
import lombok.SneakyThrows;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;


public interface XCDHAspectInter {
    @SneakyThrows
    default void before(ProceedingJoinPoint joinPoint) {}
    @SneakyThrows
    default void after(ProceedingJoinPoint joinPoint){}

    default Object round(ProceedingJoinPoint joinPoint) throws Throwable {return joinPoint.proceed();}
}
